home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
btrieve
/
btp15
/
clone.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-07-10
|
631b
|
27 lines
PROGRAM Clone; { (C) 1991 John C. Leon last updated 11/4/91 }
{$IFDEF production} {$D-,R-,L-,S-} {$ENDIF}
USES
BTP;
VAR
OrgName, CopyName : string[79];
BEGIN
if paramcount < 2 then
begin
writeln('USAGE: CLONE existing_file_name new_file_name');
halt;
end
else
begin
OrgName := paramstr(1); CopyName := paramstr(2);
end;
BStatus := CloneFile(OrgName, CopyName);
if BStatus = 0 then
writeln(CopyName, ' created successfully.')
else
writeln('Error creating ', CopyName, '. Status = ', BStatus, '.');
END.